package com.example.mvvmkotlin.basetest

import android.os.Bundle
import android.util.Log
import com.example.mvvmkotlin.BR
import com.example.mvvmkotlin.R
import com.example.mvvmkotlin.databinding.ActivityLoginBinding
import com.fangmu.basemodule.BaseActivity

class LoginActivity : BaseActivity<ActivityLoginBinding, LoginViewModel>() {
    override fun initVariableId(): Int {
        return BR.login
    }

    override fun initContentView(savedInstanceState: Bundle?): Int {
        return R.layout.activity_login
    }

    override fun initParam() {
        //编写逻辑
        viewModel!!.count.observe(this) {
            Log.d("TAG", "initParam: hhhhhhh====${it.toString()}")
        }
        viewModel!!.name.get()
    }

}